Edit CONFIG.SYSThe CONFIG.SYS file contains system configuration information/commands. When it exists (almost always), it is the first file executed when the computer is turned on or rebooted in either a DOS or OS/2 configuration. SPECIAL NOTES FOR DUAL BOOT CONFIGURATIONS: NOTE: In a dual boot configuration (i.e., DOS and OS/2) there are two distinct CONFIG.SYS files: one for DOS and one for OS/2. The current boot configuration determines which CONFIG.SYS file is in effect. When in DOS, the OS/2 file is named CONFIG.OS2. When in OS/2, the DOS CONFIG.SYS is named CONFIG.DOS. CAUTION: Recommend NOT editing/changing CONFIG.SYS files for another boot configuration when not booted in it (e.g., Do not change CONFIG.SYS for OS/2 while booted in a DOS configuration). EDIT/CHANGE CONFIG.SYS file, using one of the following procedure sets, depending on the current environment: 1) Edit CONFIG.SYS from MS-DOS: a) Enter the following commands at the DOS prompt: COPY C:\CONFIG.SYS C:\CONFIG.OLD EDIT C:\CONFIG.SYS b) Use the arrow keys to move to the line(s) to be changed. c) Add new command lines or edit existing lines. d) Review all changes, checking for correct spelling (e.g., commands, directories, filenames) and command syntax. e) Enter the following keystrokes to save the file: 1] Press ALT+F (file menu). 2] Press X (exit). 3] Press ENTER (save file and exit editor). f) Press CTRL+ALT+DEL to reboot computer for changes to take effect. 2) Edit CONFIG.SYS from MICROSOFT WINDOWS: a) Select 'Program Manager'. b) Open 'Notepad' in 'Accessories'. c) Select 'Open' under 'File'. d) Enter the following in 'Filename' box. C:\CONFIG.SYS e) Select 'Save as...' under 'File'. f) Enter the following in 'Filename' box. C:\CONFIG.OLD g) Use the arrow keys to move to the line(s) to be changed. h) Add new command lines or edit existing lines. i) Review all changes, checking for correct spelling (e.g., commands, directories, filenames) and command syntax. j) Select 'Save as...' under 'File'. k) Enter the following in 'Filename' box. C:\CONFIG.SYS l) Select 'Exit' under 'File' to close 'Notepad'.. m) Select 'Exit Windows' under 'File' in 'Program Manager'. n) Press CTRL+ALT+DEL at DOS prompt to reboot computer for changes to take effect. 3) Edit CONFIG.SYS from OS/2: CAUTION: With a Dual Boot configuration, there are two CONFIG.SYS files: one for DOS and one for OS/2. Ensure that the correct CONFIG.SYS file is edited. a) Open an OS/2 Window and enter the following commands at the OS/2 prompt: COPY C:\CONFIG.SYS CONFIG.OLD E C:\CONFIG.SYS b) Use the arrow keys to move to the line(s) to be changed. c) Make changes and/or additions (see SAMPLE below). d) Review all changes, checking for correct spelling (e.g., commands, directories, filenames) and command syntax. e) Save the file as follows: 1] Select 'File'. 2] Select 'Save'. 3] Select 'Type'. 4] Choose 'Plain Text File'. 5] Choose 'Set'. 6] Double-click on upper-left corner of window to close editor. f) Do one of the following: 1] For DOS. Press CTRL+ALT+DEL Reboot the computer for changes to take effect. 2] For OS/2: a] Right-click on desktop (to bring up 'OS/2 Desktop Menu'). b] Select 'Shut down...'. c] Press CTRL+ALT+DEL when prompted. 4) If unable to save/overwrite CONFIG.SYS, exit without saving changes and change the file attributes on CONFIG.SYS. Then re-edit file, make changes, save as CONFIG.SYS and exit editor. a) Enter the following command at the DOS prompt: ATTRIB -x CONFIG.SYS (Where x is the attribute to be removed) b) EXAMPLES: 1] To remove Read-only attribute enter the following command: ATTRIB -R CONFIG.SYS 2] To remove Hidden attribute enter the following command: ATTRIB -H CONFIG.SYS 5) Watch the bootup process to make sure changes are working properly. 6) If problems are encountered with DOS CONFIG.SYS, try one or more of the following at the DOS prompt, to diagnose and repair problem: a) Place REM in front of @ECHO OFF statement to show every command on display while troubleshooting problems. b) Place REM in front of auxiliary commands while troubleshooting critical commands. c) (Optional) Press CTRL-S to pause execution to view error messages on screen. Then press any key to continue execution. d) (Optional) Press F5 as soon as 'Starting MS-DOS...' appears on display to completely by-pass both the CONFIG.SYS and CONFIG.SYS files. e) (Optional) Press F8 as soon as 'Starting MS-DOS...' appears on display to pause execution and step through each command in CONFIG.SYS AND CONFIG.SYS one at a time. Watch for errors and repair offending commands. f) (Optional) Run MemMaker at DOS prompt (although not under OS/2) to optimize CONFIG.SYS and CONFIG.SYS to free more conventional memory. 7) Save corrected copy of CONFIG.SYS to an alternate directory and the System Recovery Diskette. 8) If unable to correct problem or improve operation, enter the following command at the DOS or OS/2 prompt to return to the original CONFIG.SYS: COPY CONFIG.OLD CONFIG.SYS SAMPLE MS-DOS CONFIG.SYS NOTE: Lines are numbered in this example only for easy reference in explanation below. DO NOT number lines in an actual CONFIG.SYS file. WARNING: Do not attempt to use this entire sample CONFIG.SYS. Some sample lines (included for illustration purposes) may conflict with each other and cause problems on the computer. 1 DEVICE=C:\DOS\HIMEM.SYS 2 DEVICE=C:\DOS\EMM386.EXE RAM 3 DOS=HIGH,UMB 4 SHELL=C:\DOS\COMMAND.COM /E:1024 /P 5 DEVICE=C:\ < pathname > \ < filename > /D:MSCD000 6 DEVICE=C:\ < pathname > \ < filename > /D:MSCD001 7 FILES=60 8 BUFFERS=20 9 LASTDRIVE=E 10 STACKS=9,256 LINE BY LINE EXPLANATION OF MS-DOS CONFIG.SYS 1 Loads the memory manager HIMEM.SYS. NOTE: If used, this memory manager should almost ALWAYS be loaded FIRST. 2 Loads the EMM386 device driver. The RAM parameter tells EMM386 to provide both expanded and upper memory. 3 Enables use of upper memory blocks (provided by EMM386). 4 Used to either change the default settings for SHELL (e.g., change the size of the DOS environment) or load a 3d party command line processor to replace COMMAND.COM (e.g., SHELL=C:\NDOS.COM /P). The /E parameter sets the environment space size and the /P parameter makes the change permanent. NOTE: Do NOT confuse this command with DOSSHELL (loads the graphical DOS Shell Program). 5 Assigns CD-ROM device 001 to Drive G and CD-ROM device 000 to Drive H. 6 Sets the maximum number of files that can be open at any one time. NOTE: Certain applications may require a higher number of file handles than others. Set this accordingly. Recommend 20 files, or 30 for Windows. 7 Sets the number of buffers used by DOS to speed disk access. 8 If computer has NO extended or expanded memory Microsoft Corporation recommends the following number of buffers, based on hard disk size: Hard disk size Buffers < 40MB 20 40-79MB 30 80-119MB 40 > 120MB 50 NOTE: Buffers > 50 begins to decrease performance. 9 Sets the highest drive letter that can be used with either the SUBST command or for a network drive letter. 10 Reserves extra space for hardware interrupt handlers. Used to fine-tune system. Often added by MemMaker. Valid range is 0 and 8-64. Default is 9. SAMPLE OS/2 CONFIG.SYS NOTE: Lines are numbered in this example only for easy reference in explanation below. DO NOT number lines in an actual CONFIG.SYS file. WARNING: Do not attempt to use this entire sample CONFIG.SYS. Some sample lines (included for illustration purposes) may conflict with each other and cause problems on the computer. 1 IFS=C:\OS2\HPFS.IFS /CACHE:256 /CRECL:4 /AUTOCHECK:C 2 PROTSHELL=C:\OS2\PMSHELL.EXE 3 SET USER_INI=C:\OS2\OS2.INI 4 SET SYSTEM_INI=C:\OS2\OS2SYS.INI 5 SET OS2_SHELL=C:\OS2\CMD.EXE 6 SET AUTOSTART=PROGRAMS, TASKLIST, FOLDERS 7 SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE 8 SET COMSPEC=C:\OS2\CMD.EXE 9 LIBPATH=.;C:\OS2\DLL;C:\OS2\MDOS;C:\;C:\OS2\APPS\DLL;C:\MMOS2\DLL 10 SET DPATH 11 SET PROMPT=$i[$p] 12 SET HELP=C:\OS2\HELP;C:\OS2\HELP\TUTORIAL;C:\MMOS2\HELP 13 SET GLOSSARY=C:\OS2\HELP\GLOSS 14 SET IPF_KEYS=SBCS 15 PRIORITY_DISK_IO=YES 16 FILES=20 17 BASEDEV=IBMKBD.SYS 18 DEVICE=C:\OS2\BOOT\TESTCFG.SYS 19 DEVICE=C:\OS2\BOOT\DOS.SYS 20 DEVICE=C:\OS2\BOOT\PMDD.SYS 21 BUFFERS=90 22 IOPL=YES 23 DISKCACHE=256, LW 24 MAXWAIT=3 25 MEMMAN=SWAP, PROTECT 26 SWAPPATH=C:\ 2048 16384 27 BREAK=OFF 28 THREADS=256 29 PRINTMONBUFSIZE=134,134,134 30 COUNTRY=001,C:\OS2\SYSTEM\COUNTRY.SYS 31 SET KEYS=ON 32 SET BOOKSHELF=C:\OS2\BOOK;C:\MMOS2; 33 SET SOMDDIR=C:\OS2\ETC\DSOM 34 REM SET DELDIR=C:\DELETE, 512;D:\DELETE, 512 35 BASEDEV=PRINT01.SYS 36 BASEDEV=IBM1FLPY.ADD 37 BASEDEV=IBM2FLPY.ADD 38 BASEDEV=IBM1S506.ADD 39 BASEDEV=XDFLOPPY.FLT 40 BASEDEV=OS2DASD.DMD 41 SET EPMPATH=C:\OS2\APPS; 42 PROTECTONLY=NO 43 SHELL=C:\OS2\MDOS\COMMAND.COM C:\OS2\MDOS 44 FCBS=16,8 45 RMSIZE=640 46 DEVICE=C:\OS2\MDOS\VEMM.SYS 47 DOS=LOW,NOUMB 48 DEVICE=C:\OS2\MDOS\VXMS.SYS /UMB 49 DEVICE=C:\OS2\MDOS\VDPMI.SYS 50 DEVICE=C:\OS2\MDOS\VDPX.SYS 51 DEVICE=C:\OS2\MDOS\VWIN.SYS 52 DEVICE=C:\OS2\MDOS\VW32S.SYS 53 DEVICE=C:\OS2\MDOS\VMOUSE.SYS 54 DEVICE=C:\OS2\BOOT\POINTDD.SYS 55 DEVICE=C:\OS2\BOOT\MOUSE.SYS 56 DEVICE=C:\OS2\BOOT\COM.SYS 57 DEVICE=C:\OS2\MDOS\VCOM.SYS 58 CODEPAGE=437,850 59 DEVINFO=KBD,US,C:\OS2\KEYBOARD.DCP 60 DEVINFO=SCR,VGA,C:\OS2\BOOT\VIOTBL.DCP 61 SET VIDEO_DEVICES=VIO_VGA 62 SET VIO_VGA=DEVICE(BVHVGA) 63 DEVICE=C:\OS2\MDOS\VVGA.SYS EXPLANATION: 1 Installs HPFS (High Performance File System) as an 'installable file system', sets up a 256K disk cache and a minimum cache record size (CRECL) of 4K, and sets the hard disk partition C to be checked automatically by CHKDSK when the file system is in an incorrect state at startup. 2 Loads the standard OS/2 interface PMSHELL (for Presentation Manager Shell). 3 Sets the file that contains the user desktop configuration options to OS2.INI (the default). 4 Sets the file that contains the operating system configuration settings to OS2SYS.INI (the default). 5 Sets the OS/2 command processor (similar to the DOS COMMAND.COM) to the file CMD.EXE. 6 Specifies the parts of the Workplace Shell (the OS/2 Graphical User Interface, or GUI) to start automatically during the boot The sample line opens previously running programs (at the last shutdown), opens the tasklist, and opens previously open folders on the desktop. 7 Specifies the filename and path of the OS/2 Graphical User Interface (GUI): the Presentation Manager. 8 Specifies the filename and path of the command processor to use during OS/2 window and fullscreen sessions. (NOTE: The default, CMD.EXE, is given here.) 9 Sets the path that OS/2 should search to find dynamic link libraries (DLLs). 10 Sets the path that OS/2 should search to find data files that are not in the current directory. 11 Sets the default OS/2 command line prompt to the logical drive letter, followed by the path in brackets (e.g., [C:\OS2\MDOS]). This distinguishes the OS/2 command line from the DOS command line to prevent confusion. 12 Sets the path that OS/2 should search to find HELP files (.HLP) for applications. 13 Sets the default location of OS/2 glossary files. 14 Sets Information Presentation Facility (IPF) keys. 15 This parameter gives any applications running in the foreground (the active window) priority when they access the hard disk (the default). NOTE: If applications that access the hard disk often (e.g., databases) are typically running in the background , setting this parameter to NO will increase their execution speed. 16 Sets the maximum number of files that a DOS session can have open at a time (just as in DOS). 17 Loads the BASE DEVICE (a device OS/2 must load when it boots) to support IBM keyboards. 18 Loads a device driver that enables OS/2 to detect the system configuration of the computer on which it is running. 19 Loads the device that supports 'virtual' DOS sessions (i.e., DOS sessions that act like DOS, but are contained in their own memory space, and given controlled instead of direct access to the hardware). 20 Loads the device driver that supports a mouse pointer to use on the OS/2 desktop. 21 Sets the number of disk buffers available for direct disk writes. 22 Sets a parameter that allows OS/2 processes to write directly to the disk. If this parameter is set to 'NO', all disk input and output is controlled by OS/2 to prevent conflicts. 23 Sets up a 256K disk cache for the FAT (File Allocation Table) file systems used on the computer, and tells OS/2 to use 'lazy write'. Lazy write makes applications write to the cache first, instead of directly to the hard disk. This data is written to the disk later, when the system is less busy. 24 Sets the maximum time in seconds (here, 3 seconds) that a process must wait before the system assigns a higher priority to it. 25 Tells the memory manager if it should use a swap file on the disk if it needs more RAM (SWAP or NOSWAP), and if it should allow access to protected memory (PROTECT). 26 Specifies the directory in which to place the OS/2 swap file (here, the root directory of drive D), the amount of disk space (2MB) at which an 'almost out of swap space' warning should be given to the user, and the initial swap file size (16MB). 27 Tells DOS and WIN/OS2 sessions to ignore the CTRL+BREAK keystroke combination when executing programs. 28 Sets the maximum amount of threads (or independent application processes that will be multitasked) to 256 (the default). 29 Sets up the minimum 134 byte buffer for the LPT1, LPT2, and LPT3 parallel ports. 30 Sets the country settings to standardize the display of dates, numbers, currency symbols (for example). 31 Makes previously entered commands available again by simply pressing the arrow keys. 32 Specifies the default directories for OS/2 on-line documents (.INF files). 33 Sets the System Object Model (SOM) directory (in OS/2 Warp or version 3.0). 34 Sets up DELETE directories that temporarily contain recently deleted files. In this sample, the line is commented out to disable the UNDELETE feature. This line MUST BE enable to use UNDELETE. 35 Loads a device driver (a BASE DEVICE, that OS/2 must load when it boots) to support local printers being used on non-Micro Channel Architecture (MCA) computers. 36 Loads a device driver to support local floppy drives on non-Micro Channel Architecture (MCA) computers. 37 Loads a device driver to support local floppy drives on non-Micro Channel Architecture (MCA) computers. 38 Loads a device driver to support non-SCSI hard disk drives on non-Micro Channel Architecture (MCA) computers. 39 Loads a device driver that supports the special Extended Data Format (XDF) used to pack more information on standard floppies. 40 Loads a device driver to support disk drives. 41 Specifies the path the OS/2 Enhanced Editor should use. 42 Sets OS/2 up to use OS/2 sessions only (PROTECTONLY=YES), or both DOS and OS/2 sessions (given here: PROTECTONLY=NO). 43 Sets the name and path of the command shell to use for DOS sessions. In this example, to COMMAND.COM (the default). 44 Sets up the file control blocks to use in DOS sessions. The first number specifies the number of file control blocks DOS can open at once. The second sets the number of blocks that DOS cannot close to make room for new blocks. 45 Sets the amount of conventional memory that a DOS session sees when running under OS/2. 640K is the default value. 46 Loads the expanded memory manager to use in DOS sessions. 47 Sets DOS to load in low (conventional) memory and stops it from using upper memory blocks to load device drivers or TSRs. This line can also be set to 'DOS=HIGH, UMB' to load DOS into the HMA and use UMBs. 48 Loads the extended memory manager to give upper memory support to DOS sessions. 49 Sets up DOS Protected Mode Interface (DPMI) support for DOS applications that use the DOS protected mode. 50 Loads a device driver to enable DOS protected mode to real mode translation for applications. 51 Loads a device driver that provides support for so-called seamless WIN/OS2 sessions on the OS/2 Desktop. 52 Loads a device driver that provides limited support for the applications that use the newer WIN32s standard for 32-bit Windows applications. 53 Loads a device driver that supports the mouse in DOS sessions. 54 Loads a device driver that supports the mouse. 55 Loads another device driver that supports the mouse. This command can use a parameter that specifies the mouse type (e.g., TYPE=PDIMOU$, for a PS/2 bus mouse). 56 Loads the device driver that lets OS/2 applications use the serial ports (this device is called COM02.SYS on PS/2 machines). 57 Loads a device driver that allows DOS sessions to use the serial ports in a controlled manner (unless direct access is enabled in the application's DOS settings page). 58 Specifies the file that OS/2 should use to determine the characters to display, print, and accept from the keyboard. This setting allows OS/2 to support different languages and standard symbols. 59 This line sets the default keyboard translation. 60 This line prepares a display for codepage switching. 61 Sets up the video device drivers for the video devices that are available on the computer. 62 Sets up the Base Video Handlers for the video devices available on the computer. 63 Loads the device driver that provides VGA video support in DOS sessions. TIPS: 1) To make temporary changes, place REM (remarks command) at the beginning of each command line to be changed. Then try booting with this configuration or, copy lines to be changed and change the copies. This preserves the original configuration of the command line in case changes do not work properly. 2) Make sure a semicolon follows each path component in the PATH= command line. 3) Make sure the backslash (\) is used in path statements (not forward slash (/)). 4) Editing an OS/2 CONFIG.SYS file to change more than a few lines is a risky and complicated process. Get a good OS/2 reference book that gives detailed descriptions of what each line in the OS/2 CONFIG.SYS does, and examples of how the lines should look with various computer configurations. 5) Always make a backup copy of the OS/2 CONFIG.SYS before making changes. Put this backup file in a different directory than the main CONFIG.SYS for safekeeping. NOTE: The newest OS/2 version: OS/2 Warp, comes with an automatic archiving utility that does this step automatically (as well as saving archive copies of the INI files OS2.INI and OS2SYS.INI files). Subject to the terms set forth in the end-user license agreement. All rights reserved. |